package a.f;

public class qc
  implements gd
{
  public static int a;
  
  public double a(fc paramfc)
  {
    boolean bool = o.eg;
    int k = o.dg;
    ic localic = paramfc.k();
    if (!bool) {
      if ((localic instanceof xc)) {
        return 1.0D;
      }
    }
    wb localwb = (wb)localic;
    int i = localwb.b().a();
    xb localxb = localwb.a();
    double d1 = 0.0D;
    double d2 = 0.5D;
    if (!bool) {
      switch (i)
      {
      case 1: 
        d2 = 0.0D;
        if (!bool) {
          if (k == 0) {
            break;
          }
        }
        break;
      case 2: 
        d2 = 1.0D;
        if (!bool) {
          if (k == 0) {
            break;
          }
        }
        break;
      case 4: 
        d2 = 0.5D;
      }
    }
    Object localObject;
    if (!bool) {
      if ((localxb instanceof kd))
      {
        localObject = paramfc.q();
        kd.a_ locala_ = (kd.a_)localObject;
        d1 = locala_.e();
      }
    }
    if ((bool) || ((localxb instanceof ub)))
    {
      localObject = paramfc.q();
      int j = ((Integer)localObject).intValue();
      if (!bool) {}
      switch (j)
      {
      case 1: 
      case 8: 
      case 64: 
        if (!bool)
        {
          d1 = 0.05D;
          if (k == 0) {
            break;
          }
        }
        break;
      case 2: 
      case 16: 
      case 128: 
        if (!bool)
        {
          d1 = 0.5D;
          if (k == 0) {
            break;
          }
        }
        break;
      case 4: 
      case 32: 
      case 256: 
        d1 = 0.95D;
      }
    }
    return 1.0D - Math.abs((d2 - d1) * 2.0D);
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.qc
 * JD-Core Version:    0.7.0.1
 */